package com.wcarmon.life.vo {

 	import com.adobe.cairngorm.vo.IValueObject;
	
	public class StatsVO implements IValueObject {
		include "../../includes/loggerSnippet.as";
		
		/* --------- Review Related ---------- */
		[Bindable]
		public var dateOfLastDailyReview : String = '';
		
		[Bindable]
		public var dateOfLastMonthlyReview : String = '';
		
		[Bindable]
		public var dateOfLastQuarterlyReview : String = '';
		
		[Bindable]
		public var dateOfLastWeeklyReview : String = '';
		
		[Bindable]
		public var dateOfLastYearlyReview : String = '';
 	
		
		/* --------- Block Related ---------- */
		
		[Bindable]
		public var collectInboxItems : int = -1;
		
		[Bindable]
		public var idleActions : int = -1;
		
		[Bindable]
		public var idleOpenProjects : int = -1;
		
		[Bindable]
		public var idleOpenProjectsDueThisMonth : int = -1;
		
		[Bindable]
		public var idleOpenProjectsWithDeadline : int = -1;

		[Bindable]
		public var idleWFItems : int = -1;
		
		[Bindable]
		public var imapInboxCount : int = -1;
		
		[Bindable]
		public var nextActionsClosedThisMonth : int = -1;

		[Bindable]
		public var openCalendarItems : int = -1;
		
		[Bindable]
		public var openDistantFutureItems : int = -1;

		[Bindable]
		public var openNextActions : int = -1;

		[Bindable]		
		public var openNextActionsDueThisWeek : int = -1;

		[Bindable]
		public var openNextActionsDueThisMonth : int = -1;
				
		[Bindable]
		public var openProjects : int = -1;
		
		[Bindable]
		public var openProjectsDueThisMonth : int = -1;
					
		[Bindable]
		public var openProjectsDueThisWeek : int = -1;
					
		[Bindable]
		public var openProjectsWithDeadline : int = -1;
					
		[Bindable]
		public var openSomedayItems : int = -1;
					
		[Bindable]
		public var openWFItems : int = -1;
		
		[Bindable]
		public var overdueOpenNA : int = -1;

		[Bindable]
		public var overdueOpenProjects : int = -1;

		[Bindable]
		public var overdueOpenWF : int = -1;
					
		[Bindable]
		public var projectsClosedLastMonth : int = -1;
					
		[Bindable]
		public var projectsClosedThisMonth : int = -1;

		[Bindable]
		public var projectsCreatedLastMonth : int = -1;
		
		[Bindable]
		public var projectsCreatedThisMonth : int = -1;
		
		[Bindable]
		public var projectsRejectedThisMonth : int = -1;
		
		[Bindable]
		public var referenceItems : int = -1;
		
   		
		
		
		/*
				[Bindable]
		public var lastDailyReview : String = "2000-01-01";
		
		[Bindable]
		public var lastWeeklyReview : String = "Sep 25, 07";
		
		[Bindable]
		public var lastMonthlyReview : String = "2000-01-01";
		
		[Bindable]
		public var lastQuarterlyReview : String = "2000-01-01";
		
		[Bindable]
		public var lastYearlyReview : String = "2000-01-01";
				
		[Bindable]
		public var numNextActions: int = -1;
		
		[Bindable]
		public var numNADueThisWeek : int = -1;
		
		[Bindable]
		public var numNADueThisMonth : int = -1;
*/
		
		public function StatsVO() {
		}
		
		public static function makeStatsVO( o : Object ) : StatsVO {
			var s : StatsVO = new StatsVO();
			
			s.overdueOpenNA = o.overdueOpenNA;
			s.overdueOpenWF = o.overdueOpenWF;
			s.collectInboxItems = o.collectInboxItems;
			s.dateOfLastDailyReview = o.dateOfLastDailyReview;
			s.dateOfLastMonthlyReview = o.dateOfLastMonthlyReview;
			s.dateOfLastQuarterlyReview = o.dateOfLastQuarterlyReview;
			s.dateOfLastWeeklyReview = o.dateOfLastWeeklyReview;
			s.dateOfLastYearlyReview = o.dateOfLastYearlyReview;		
			s.idleActions = o.idleActions;
			s.idleOpenProjects = o.idleOpenProjects;
			s.idleOpenProjectsDueThisMonth = o.idleOpenProjectsDueThisMonth;  
  			s.idleOpenProjectsWithDeadline = o.idleOpenProjectsWithDeadline;
  			s.idleWFItems = o.idleWFItems;
  			s.imapInboxCount = o.imapInboxCount;
  			s.nextActionsClosedThisMonth = o.nextActionsClosedThisMonth;			 
  			s.openCalendarItems = o.openCalendarItems; 
  			s.openDistantFutureItems = o.openDistantFutureItems;
  			s.openNextActions = o.openNextActions;
  			s.openNextActionsDueThisMonth = o.openNextActionsDueThisMonth;
  			s.openNextActionsDueThisWeek = o.openNextActionsDueThisWeek;			
  			s.openProjects = o.openProjects;
  			s.openProjectsDueThisMonth = o.openProjectsDueThisMonth;
  			s.openProjectsDueThisWeek = o.openProjectsDueThisWeek;					 
   			s.openProjectsWithDeadline = o.openProjectsWithDeadline;
  			s.openSomedayItems = o.openSomedayItems; 
			s.openWFItems = o.openWFItems;
			s.overdueOpenProjects = o.overdueOpenProjects;
			s.projectsClosedLastMonth = o.projectsClosedLastMonth;
			s.projectsClosedThisMonth = o.projectsClosedThisMonth;
			s.projectsCreatedLastMonth = o.projectsCreatedLastMonth;		
			s.projectsCreatedThisMonth = o.projectsCreatedThisMonth;		
  			s.projectsRejectedThisMonth = o.projectsRejectedThisMonth;
   			s.referenceItems = o.referenceItems;			
			return s; 
		}		
		
	}
}